// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import axios from "axios";
import $ from "jquery";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/style/common.css";
import API from "../static/config.js";
import md5 from 'js-md5';
// import '@/utils/rem.js'
import '@/style/com.less'
import Cookies from 'js-cookie'

Vue.prototype.$axios = axios; //全局注册，使用方法为:this.$axios
Vue.prototype.$API = API; //全局注册，使用方法为:this.$axios
Vue.prototype.$ = $; //全局注册，使用方法为:this.$axios
Vue.prototype.$md5 = md5;
Vue.prototype.$Cookies = Cookies;
Vue.use(ElementUI);

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
